package sha1

import (
	"crypto/sha1"
	"encoding/hex"
)

// https://www.php.net/manual/en/function.sha1
func Do(s string) string {
	hasher := sha1.New()
	hasher.Write([]byte(s))
	return hex.EncodeToString(hasher.Sum(nil)) // 以 32 字符的十六进制数形式返回散列值
}
